-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
📖 Update InfraCluster provider contract to account for the paused condition #10519
📖 Update InfraCluster provider contract to account for the paused condition #10519
Conversation
Hi @theobarberbany. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/area documentation |
285b232
to
2ff8fbd
Compare
docs/book/src/developer/architecture/controllers/control-plane.md
Outdated
Show resolved
Hide resolved
/ok-to-test |
docs/book/src/developer/architecture/controllers/control-plane.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/architecture/controllers/control-plane.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/architecture/controllers/control-plane.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/architecture/controllers/control-plane.md
Outdated
Show resolved
Hide resolved
docs/book/src/developer/architecture/controllers/control-plane.md
Outdated
Show resolved
Hide resolved
2ff8fbd
to
24a20d0
Compare
7207fac
to
4d6f9c2
Compare
5be71d8
to
965cb82
Compare
@theobarberbany things are moving fast in the CAPI world! FYI, https://github.com/fabriziopandini/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md recently merged, introducing a paused conditions in all CAPI resources. Also as a side effect, there is a major refactor of docs in progress on main WRT to provider contract pages (I also gave an update yesterday at the office hours). Work is tracked in #11105 (a few PR are still missing, but I hope to complete this work by end of next week) It would be great if contract changes in this PR can build on top of it 😅 |
Hey @fabriziopandini, That's great! I was about to ask, as the Infra Cluster contract looks significantly different to the others! I'll try and build off of that, as it seems the others will follow it's style (e.g https://github.com/kubernetes-sigs/cluster-api/pull/11223/files) How does that sound? :D Also is there anything else in #11105 I can do to help? |
965cb82
to
b4e6936
Compare
@fabriziopandini I've updated this PR to add the paused condition to the |
b4e6936
to
adfa182
Compare
@@ -308,6 +308,8 @@ If a condition with type `Ready` exist, such condition will be mirrored in Clust | |||
Please note that the `Ready` condition is expected to surface the status of the InfraCluster during its own entire lifecycle, | |||
including initial provisioning, the final deletion process, and the period in between these two moments. | |||
|
|||
Provider implementers SHOULD implement `Status.Conditions[Paused]` to report if the cluster is paused. It should check if 'spec.paused' is set on the cluster, and for the paused annotation. Implementing this condition is currently optional, but we may revisit this in the future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I would add a dedicated, optional rule for pause stating that
- providers SHOULD implement the pause behaviour for every object with a reconciliation loop (eg. pause machines when the cluster or the object is paused; pause does not makes sense for templates)
- if implementing the pause behaviour, providers SHOULD surface the pause status for an object with a condition
Also, let's be specific and name the annotation that trigger pause at object level
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I think I've updated as you've asked! PTAL :)
adfa182
to
ccd3d15
Compare
@@ -335,6 +335,12 @@ the implication of this choice which are described both in the document above an | |||
|
|||
</aside> | |||
|
|||
### InfraCluster: Pausing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please link this rule from the table up at L44 on this page (you can add this as a new line at the end)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added at the end, not sure if it should be underneath the other InfraCluster: <foo>
lines though?
ccd3d15
to
c6a8027
Compare
/lgtm |
LGTM label has been added. Git tree hash: 43f75dcf90b7bc9e4b5722c10e2557495332b536
|
Thx! /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbueringer The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
This change updates the infra cluster provider contract to account for a new paused
condition.
Relates #10130
/area documentation